package com.example.base.cons

import com.example.base.cons.entity.LoginEntity
import com.example.base.cons.entity.NoticeBean
import com.example.base.cons.mvvm.BaseModel
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Query

interface ApiServer {
    @POST("/api/user/login")
    suspend fun login(@Query("username")username : String, @Query("password")password : String): BaseModel<LoginEntity>

    @GET("/api/announcements")
    suspend fun getNotices(@Query("page")page : Int, @Query("size")size:Int):BaseModel<NoticeBean>
}